var fs=require("fs");
var path=require("path");

var filePath=path.join(__dirname,"/from.txt");
var readable=fs.createReadStream(filePath);
var filePath2=path.join(__dirname,"/to.txt");
var writeable=fs.createWriteStream(filePath2);
readable.on("data",function (chunk) {
    // var big=chunk.toString("utf8").toUpperCase();
    writeable.write(chunk.toString("utf8").toUpperCase());
});

readable.pipe(process.stdout);

// writeable.end();